<?php echo $this->Html->script(array('MoneyManager.js'),array('inline' => false));?>
<div id ="viewInfo">
	<fieldset>
	<legend>Money Manager</legend>
	<div class="searchInfo" style="float: left;">
			<p>
				<label for="dropdown">Name: </label>
				<select name="dropdown" class="grounpId">
					<option value = ''>Please select an option</option>
					<?php foreach ($allUser as $item){?>
						<option value = '<?php echo  base64_encode($item['User']['id'])?>'><?php echo $item['User']['username']?></option>
					<?php }?>
				</select>
			</p>
			<p style="margin-left: 118px;">
				<input type="radio" value="0" name="ChooseType" checked="checked">Member Advice
				<input type="radio" value="1" name="ChooseType">Member Need Advice
			</p>
			<input class="button Search" type="button" value="Search">
	</div>
		
	</fieldset>
</div>
<div id="advice">
	<div class="paging">
		<?php
			echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
			echo $this->Paginator->numbers(array('separator' => ''));
			echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
		?>
	</div>
	<table class="fullwidth" cellpadding="0" cellspacing="0" border="0">
		<thead>
			<tr>
				<td>ID.</td>
				<td>Name</td>
				<td>Skype</td>
				<td>Email</td>
				<td>Money In</td>
				<td>Total Transaction</td>
				<td>Total Time Transaction</td>
				<td>Total Money</td>
			</tr>
		</thead>
		<?php 
			if($Dataview){
				foreach ($Dataview as $item){
					echo $item;
				}
			}else{
				echo "<span class='validate_success'>A positive message!</span>";
			}
		?>
	</table>
</div>
<div id="viewHistory">
	
	
</div>
